package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/4/1 14:16
 * Dest
 */

public class ChildrenBean implements Parcelable {
/*      * id : 899
            * img : http://p35r91t1w.bkt.clouddn.com/upload/goods_list_img/37c82002-bea2-4f0d-a6f5-24531b91733e.jpg
            * name : 北欧风格 抛光实木内架棉麻布艺左转角沙发（3+左贵妃）
            * price : 5000
            */
    private int id;
    private String img;
    private String name;
    private double price;
    private String coupon;
    private String specialSales;

    public String getCoupon() {
        return coupon;
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }
    public String getSpecialSales() {
        return specialSales;
    }

    public void setSpecialSales(String specialSales) {
        this.specialSales = specialSales;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.img);
        dest.writeString(this.name);
        dest.writeDouble(this.price);
    }

    public ChildrenBean() {
    }

    protected ChildrenBean(Parcel in) {
        this.id = in.readInt();
        this.img = in.readString();
        this.name = in.readString();
        this.price = in.readInt();
    }

    public static final Parcelable.Creator<ChildrenBean> CREATOR = new Parcelable.Creator<ChildrenBean>() {
        @Override
        public ChildrenBean createFromParcel(Parcel source) {
            return new ChildrenBean(source);
        }

        @Override
        public ChildrenBean[] newArray(int size) {
            return new ChildrenBean[size];
        }
    };
}
